package com.pqtest.api.domain;

import com.pqtest.api.dto.CollectionDto;
import com.pqtest.api.entity.CollectionEntity;
import com.pqtest.api.entity.PqCsTestItemEntity;
import com.pqtest.api.utils.DtoEntityTransformer;
import org.springframework.stereotype.Component;

@Component
public class CollectionDomain {
    //收藏
    public CollectionEntity collect(CollectionDto collectionDto){
       //int itemId = collectionDto.getItemId();
        CollectionEntity collectionEntity = new CollectionEntity();
        DtoEntityTransformer.transalte(collectionDto,collectionEntity);
        return collectionEntity;
    }
}